#include "http_conn.h"

const char *ok_200_title = "OK";
const char *error_400_title = "Bad Request";
const char *error_400_form = "Your request has bad syntax or is inherently impossible to satisfy.\n";
const char *error_403_title = "Forbidden";
const char *error_403_form = "You do not have permission to get file from this server.\n";
const char *error_404_title = "Not Found";
const char *error_404_form = "The requested file was not found on this server.\n";
const char *error_500_title = "Internal Error";
const char *error_500_form = "There was an unusual problem serving the requested file.\n";

const char *doc_root = "/var/www/html";

int setnonblocking(int epollfd)
{
    int old_option = fcntl(epollfd, F_GETFL);
    int new_option = old_option | O_NONBLOCK;
    fcntl(epollfd, F_SETFL, new_option);
    return old_option;
}

void add_fd(int epollfd, int fd, bool one_shot)
{
}